package com.rtp.transformer.fin.client;

import com.google.gwt.user.client.Command;
import com.google.gwt.user.client.ui.MenuBar;
import com.google.gwt.user.client.ui.TabPanel;
import com.google.gwt.user.client.ui.VerticalPanel;
import com.rtp.transformer.fin.client.Sink.SinkInfo;

public class Administrator extends Sink {

	public Administrator() {

		 
			final VerticalPanel panel = new VerticalPanel();
			initWidget(panel);
			panel.setWidth("100%");

			final TabPanel tabPanel = new TabPanel();
			panel.add(tabPanel);
			tabPanel.setWidth("100%");
			
			final VerticalPanel gl = new VerticalPanel();
			tabPanel.add(gl, "User Admin");

			final VerticalPanel bpi = new VerticalPanel();
			tabPanel.add(bpi, "Privelege Settings");

			final VerticalPanel si = new VerticalPanel();
			tabPanel.add(si, "Data Backup");

			final VerticalPanel sri = new VerticalPanel();
			tabPanel.add(sri, "Audit Log");
			tabPanel.selectTab(0);
		 
	}
	
	public static SinkInfo init() {
		return new SinkInfo("Administration","<h2>Admin function</h2>"
				+ "<p>Administrator can use this function to maintain user and privilege control. "
				+ "</p><p>Housekeeping work is also avaiable. "
				+ "</p>"){

		 
			public Sink createInstance() {
				// TODO Auto-generated method stub
				return new Administrator();
			}
			
		};
	}
	

}
